import service from '@/utils/request'

// @Tags Disease
// @Summary 创建Disease
// @Security ApiKeyAuth
// @accept application/json
// @Produce application/json
// @Param data body model.Disease true "创建Disease"
// @Success 200 {string} string "{"success":true,"data":{},"msg":"获取成功"}"
// @Router /disease/createDisease [post]
export const createDisease = (data) => {
  return service({
    url: '/disease/createDisease',
    method: 'post',
    data
  })
}

// @Tags Disease
// @Summary 删除Disease
// @Security ApiKeyAuth
// @accept application/json
// @Produce application/json
// @Param data body model.Disease true "删除Disease"
// @Success 200 {string} string "{"success":true,"data":{},"msg":"删除成功"}"
// @Router /disease/deleteDisease [delete]
export const deleteDisease = (datam,params) => {
  return service({
    url: '/disease/deleteDisease',
    method: 'delete',
    data,
    params
  })
}

// @Tags Disease
// @Summary 删除Disease
// @Security ApiKeyAuth
// @accept application/json
// @Produce application/json
// @Param data body request.IdsReq true "批量删除Disease"
// @Success 200 {string} string "{"success":true,"data":{},"msg":"删除成功"}"
// @Router /disease/deleteDisease [delete]
export const deleteDiseaseByIds = (data) => {
  return service({
    url: '/disease/deleteDiseaseByIds',
    method: 'delete',
    data
  })
}

// @Tags Disease
// @Summary 更新Disease
// @Security ApiKeyAuth
// @accept application/json
// @Produce application/json
// @Param data body model.Disease true "更新Disease"
// @Success 200 {string} string "{"success":true,"data":{},"msg":"更新成功"}"
// @Router /disease/updateDisease [put]
export const updateDisease = (data) => {
  return service({
    url: '/disease/updateDisease',
    method: 'put',
    data
  })
}

// @Tags Disease
// @Summary 用id查询Disease
// @Security ApiKeyAuth
// @accept application/json
// @Produce application/json
// @Param data query model.Disease true "用id查询Disease"
// @Success 200 {string} string "{"success":true,"data":{},"msg":"查询成功"}"
// @Router /disease/findDisease [get]
export const findDisease = (params) => {
  return service({
    url: '/disease/findDisease',
    method: 'get',
    params
  })
}

// @Tags Disease
// @Summary 分页获取Disease列表
// @Security ApiKeyAuth
// @accept application/json
// @Produce application/json
// @Param data query request.PageInfo true "分页获取Disease列表"
// @Success 200 {string} string "{"success":true,"data":{},"msg":"获取成功"}"
// @Router /disease/getDiseaseList [get]
export const getDiseaseList = (params) => {
  return service({
    url: '/disease/getDiseaseList',
    method: 'get',
    params
  })
}

export const setDiseaseGraphic = (data) => {
  return service({
    url: '/disease/setDiseaseGraphic',
    method: 'post',
    data
  })
}


export const getDiseaseGraphic = (params) => {
  return service({
    url: '/disease/getDiseaseGraphic',
    method: 'get',
    params
  })
}

// @Tags Disease
// @Summary 获取病症排行【超管】
// @Security ApiKeyAuth
// @accept application/json
// @Produce application/json
// @Param data query request.PageInfo true "获取病症排行【超管】"
// @Success 200 {string} string "{"success":true,"data":{},"msg":"获取成功"}"
// @Router /disease/getDiseaseRank [get]
export const getDiseaseRank = (params) => {
  return service({
    url: '/disease/getDiseaseRank',
    method: 'get',
    params
  })
}

// @Tags Disease
// @Summary 获取病症排行【服务中心】
// @Security ApiKeyAuth
// @accept application/json
// @Produce application/json
// @Param data query request.PageInfo true "获取病症排行【服务中心】"
// @Success 200 {string} string "{"success":true,"data":{},"msg":"获取成功"}"
// @Router /disease/getDiseaseRank [get]
export const getScDiseaseRank = (params) => {
  return service({
    url: '/disease/getScDiseaseRank',
    method: 'get',
    params
  })
}

// @Tags Disease
// @Summary 获取病症列表
// @Security ApiKeyAuth
// @accept application/json
// @Produce application/json
// @Param data query request.PageInfo true "获取病症列表"
// @Success 200 {string} string "{"success":true,"data":{},"msg":"获取成功"}"
// @Router /disease/getBzList [post]
export const getBzList = (data) => {
  return service({
    url: '/disease/getBzList',
    method: 'post',
    data
  })
}


// @Tags Disease
// @Summary 获取病症用户列表【超管】
// @Security ApiKeyAuth
// @accept application/json
// @Produce application/json
// @Param data query request.PageInfo true "获取病症用户列表【超管】"
// @Success 200 {string} string "{"success":true,"data":{},"msg":"获取成功"}"
// @Router /disease/getDiseaseUserList [post]
export const getDiseaseUserList = (params) => {
  return service({
    url: '/disease/getDiseaseUserList',
    method: 'get',
    params
  })
}

// @Tags Disease
// @Summary 导出病症排行Excel【超管】
// @Security ApiKeyAuth
// @accept application/json
// @Produce application/json
// @Param data query request.PageInfo true "导出病症排行Excel【超管】"
// @Success 200 {string} string "{"success":true,"data":{},"msg":"获取成功"}"
// @Router /disease/exportDiseaseRankExcel [post]
export const exportDiseaseRankExcel = (params) => {
  return service({
    url: '/disease/exportDiseaseRankExcel',
    method: 'get',
    params
  })
}

